/*
 * @Author: lg9527 13691080728@126.com
 * @Date: 2024-02-19 11:18:38
 * @LastEditors: lg9527 13691080728@126.com
 * @LastEditTime: 2024-03-04 12:00:50
 * @FilePath: \cmjyxpcfront\src\router\routes\modules\demo\threePure.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// 四清三停四建设
import type { AppRouteModule } from '/@/router/types';

import { getParentLayout, LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const charts: AppRouteModule = {
  path: '/specialBaseStatic',
  name: 'specialBaseStatic',
  component: LAYOUT,
  redirect: '/specialBaseStatic/specialBaseStatic',
  meta: {
    orderNo: 216,
    icon: 'ion:bar-chart-outline',
    title: t('routes.demo.specialBaseStatic.root'),
    roles: ['Admin', 'City', 'Area', 'Street', 'Community', 'Investigator'],
    //  userGroups: ['Admin', 'FireControl', 'Housing', 'Police'],
    userGroups: ['FireControl'],
  },
  children: [
    // 悬挂固定警示标牌
    {
      path: 'xggdjsbp',
      name: 'xggdjsbp',
      meta: {
        title: t('routes.demo.specialBaseStatic.xggdjsbp'),
        roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
        userGroups: ['Admin', 'FireControl'],
        hideChildrenInMenu: true,
      },
      component: () => import('/@/views/specialBaseStatic/gdjsbp/index.vue'),
      children: [
        // 未悬挂固定警示标牌
        {
          path: 'noposted',
          name: 'noposted',
          meta: {
            title: '未悬挂固定警示标牌台账',
            hideMenu: true,
            roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
            userGroups: ['Admin', 'FireControl'],
          },
          component: () => import('/@/views/specialBaseStatic/gdjsbp/component/noposted.vue'),
        },
      ],
    },
    // 人员密集场所统计
    {
      path: 'rymjcs',
      name: 'rymjcs',
      meta: {
        title: t('routes.demo.specialBaseStatic.rymjcs'),
        roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
        userGroups: ['Admin', 'FireControl'],
      },
      component: () => import('/@/views/specialBaseStatic/rymjcs/index.vue'),
    },
    // //充电设施配比情况
    {
      path: 'cdsspb',
      name: 'cdsspb',
      meta: {
        title: t('routes.demo.specialBaseStatic.cdsspb'),
        roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
        userGroups: ['Admin', 'FireControl'],
      },
      component: () => import('/@/views/cgSpecial/cdsspb/index.vue'),
    },
    //隐患信息统计类型消隐
    {
      path: 'cdfs',
      name: 'cdfs',
      meta: {
        title: t('routes.demo.specialBaseStatic.cdfs'),
        roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
        userGroups: ['Admin', 'FireControl'],
      },
      component: () => import('/@/views/cgSpecial/cdfs/index.vue'),
    },
    {
      path: 'firefacilities',
      name: 'firefacilities',
      meta: {
        title: t('routes.demo.specialBaseStatic.firefacilities'),
        hideChildrenInMenu: true,
        roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
        userGroups: ['FireControl'],
      },
      component: () => import('/@/views/firefacilities/index.vue'),
    },
  ],
};

export default charts;
